-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bug with KeyError: 'params/eta'
#1246
base: main
Are you sure you want to change the base?
Conversation
KeyError: 'params/eta'
Any follow up on this please? The PR looks ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you like to add more explainations to the docstring?
Args: | ||
d (dict): The target dictionary to be updated. | ||
u (dict): A dictionary containing values to be merged into `d`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Args: | |
d (dict): The target dictionary to be updated. | |
u (dict): A dictionary containing values to be merged into `d`. | |
Update the dictionary `d` with the dictionary `u` recursively. | |
Args: | |
d (dict): The target dictionary to be updated. | |
u (dict): A dictionary containing values to be merged into `d`. | |
Example: | |
```python | |
d= {'num_boost_round': 10, 'params': {'max_depth': 12, 'eta': 0.02}} | |
u= {'params': {'verbosity': 3, 'booster': 'gbtree'}} | |
recursive_update(d, u) | |
d # {'num_boost_round': 10, 'params': {'max_depth': 12, 'eta': 0.02, 'verbosity': 3, 'booster': 'gbtree'}} | |
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check out here for code formatting. https://microsoft.github.io/FLAML/docs/Contribute#pre-commit
Why are these changes needed?
Reference to #1244
Related issue number
#1244
Checks